package com.anyou.mall.supply.mapper;

import java.util.List;
import com.anyou.mall.supply.domain.Supply;
import com.anyou.mall.supply.vo.GoodsVo;
import com.anyou.mall.supply.vo.SupplyVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 补给单Mapper接口
 *
 * @author ruoyi
 * @date 2023-10-13
 */
public interface SupplyMapper extends BaseMapper<Supply>
{
    /**
     * 查询补给单
     *
     * @param supplyId 补给单主键
     * @return 补给单
     */
    public SupplyVo selectSupplyBySupplyId(Long supplyId);

    /**
     * 查询补给单列表
     *
     * @param supply 补给单
     * @return 补给单集合
     */
    public List<Supply> selectSupplyList(Supply supply);

    /**
     * 新增补给单
     *
     * @param supply 补给单
     * @return 结果
     */
    public int insertSupply(Supply supply);

    /**
     * 修改补给单
     *
     * @param supply 补给单
     * @return 结果
     */
    public int updateSupply(Supply supply);

    /**
     * 删除补给单
     *
     * @param supplyId 补给单主键
     * @return 结果
     */
    public int deleteSupplyBySupplyId(Long supplyId);

    /**
     * 批量删除补给单
     *
     * @param supplyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSupplyBySupplyIds(Long[] supplyIds);

    /**
     * 查询商品信息
     * @param goodSkuId
     * @return
     */
    GoodsVo selectGoodsByGoodsSkuId(Long goodSkuId);
}
